package xyz.hubery.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import xyz.hubery.domain.CoinRecharge;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.hubery.domain.CoinWithdraw;

public interface CoinRechargeService extends IService<CoinRecharge>{

    /**
     * 分页查询充币记录
     * @param userId
     * @param userName
     * @param mobile
     * @param status
     * @param numMin
     * @param numMax
     * @param startTime
     * @param endTime
     * @param page
     * @return
     */
    Page<CoinRecharge> findPage(Long userId, String userName, String mobile, Byte status, Integer numMin, Integer numMax, String startTime, String endTime, Page<CoinRecharge> page);

    /**
     * 分页查询用户的充币记录
     * @param userId 用户ID
     * @param coinId 币种ID
     * @param page 分页参数
     * @return
     */
    Page<CoinRecharge> findCoinRechargePage(Long userId, Long coinId, Page<CoinRecharge> page);
}
